function StartAjaxAnimate(job) {

    var mySwiper = new Swiper('.swiper-container', {
        //autoplay: 3200, //自动播放间隔时间
        //loop: true,
        initialSlide: 1, //从第2个开始
        //loopAdditionalSlides: 3,
        //pagination: '.swiper-pagination',
        //autoplayDisableOnInteraction: false,
        //observer: true,
        //observeParents: true,
        effect: 'coverflow',
        slidesPerView: 4,
        centeredSlides: true,
        coverflow: {
            rotate: 0,
            stretch: 0,
            depth: 0,
            modifier: 0,
            slideShadows: false
        }
    });


    $('.swiper-slide').click(function () {
        var details = $(this).find('.details');
        $('.details').stop().slideUp(300);
        details.stop().slideToggle(300);
    });
    $('.details').click(function () {
        $(this).stop().slideUp(300);
        event.stopPropagation();
    });
    $('.readerlogin-button,.search').click(function () {
        $('.details').stop().slideUp(300);
    });



}

/*　读者登录 */
$(function () {
    var loginButton = $('.readerlogin-button');
    var loginForm = $('.readerlogin-form');
    var loginFormError = $('.readerlogin-form .error');
    var loginFormInput = $('.readerlogin-form form input');
    var maskAndclose = $('.readerlogin-form .mask,#close');
    var mask = $('.readerlogin-form .mask');
    var header = $('header h1');

    header.addClass('headernormal');
    loginButton.click(function () {
        if (UserId > 0) {
            AjaxContents(window.TopicId, window.CurrentFunction, '', JobIDUserInfo, '');
        }
        else {
            loginForm.show();
            header.removeClass('headernormal').addClass('headerlogin');
            mask.fadeIn();
        }
    });

    maskAndclose.click(function () {
        loginForm.hide();
        mask.hide();
        header.removeClass('headerlogin').addClass('headernormal');
        loginFormError.empty(); //清除登录窗口的错误信息
        loginFormInput.val(null); //清除用户名密码
        return false;
    });


});


